<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
	</head>

	<body>
		<h1>我的第一个 Web 页面</h1>

		<p id="demo">我的第一个段落</p>

		<script>
			document.getElementById("demo").innerHTML = "段落已修改。";
		</script>

		<script>
			document.write(Date());
		</script>

		<br />
		<br />
		<button onclick="myFunction()">点我</button>
		<script>
			function myFunction() {
				document.write(Date());
			}
		</script>

		<script>
			function myFunction2() {
				a = 5;
				b = 6;
				c = a + b;
				console.log(c);
			}
		</script>
		<button onclick="myFunction2()">点我2</button>
	</body>

</html>